package service;

import java.util.List;
import bookDao.BookDao;
import bookDao.BookImpl;
import borrowingInformationDao.BorrowingInformationDao;
import borrowingInformationDao.BorrowingInformationImpl;
import table.Book;
import table.User;
import userDao.UserDao;
import userDao.UserImpl;

public class Consumer {
	BookDao book3 = new BookImpl();
	UserDao consumer = new UserImpl();
	BorrowingInformationDao borrowingImformation2 = new BorrowingInformationImpl();

	/**
	 * 查询用户的个人信息
	 * @return
	 */
	public List<User> find(){
		return consumer.findAll();
	}
	//修改部分个人信息
	public void updateByOneself(User x){
		consumer.updateByOneself(x);
	}
	//用户名找用户
	public List<User> get5(String x) {
		return consumer.get5(x);
	}

}
